package com.wit.witmg.service;

import com.wit.witmg.entity.DeviceSession;
import com.wit.witmg.entity.TMonitDust;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author bob
 * @since 2025-08-11
 */
public interface ITMonitDustService extends IService<TMonitDust> {

    Object add(HttpServletRequest request, String json);

    Object get(HttpServletRequest request, Long dt0, Long dt1, String sid, String loca);

    void addConnection(Integer sbid, DeviceSession session);

    DeviceSession getConnection(Integer sbid);

    void removeConnection(Integer sbid);

    Object sendCommandToDevice(Integer sbid, String command);

    void handleDeviceMessage(Integer sbid, String message);
}
